package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseResponse;

import java.util.List;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:11/22/16.
 */
public class ReportFeedbackListResponse extends BaseResponse {

    private ReportFeedbackList data;

    public ReportFeedbackList getData(){
        return data;
    }

    public static class ReportFeedbackList {

        private int offset;
        private int limit;
        private int total;
        private int size;
        private int pages;
        private int current;
        private boolean searchCount;
        private List<ReportFeedbackBean> records;
        private boolean asc;
        private int offsetCurrent;

        public int getOffset() {
            return offset;
        }

        public void setOffset(int offset) {
            this.offset = offset;
        }

        public int getLimit() {
            return limit;
        }

        public void setLimit(int limit) {
            this.limit = limit;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getCurrent() {
            return current;
        }

        public void setCurrent(int current) {
            this.current = current;
        }

        public boolean isSearchCount() {
            return searchCount;
        }

        public void setSearchCount(boolean searchCount) {
            this.searchCount = searchCount;
        }

        public List<ReportFeedbackBean> getRecords() {
            return records;
        }

        public void setRecords(List<ReportFeedbackBean> records) {
            this.records = records;
        }

        public boolean isAsc() {
            return asc;
        }

        public void setAsc(boolean asc) {
            this.asc = asc;
        }

        public int getOffsetCurrent() {
            return offsetCurrent;
        }

        public void setOffsetCurrent(int offsetCurrent) {
            this.offsetCurrent = offsetCurrent;
        }
    }

    public static class ReportFeedbackBean implements Parcelable {

        /**
         * id : 3584b09535bf49c88e1ab3173b4196f2
         * reportid : 8a2d9263577a90110157ac8d0fa50db4
         * content : 哈哈哈哈哈哈
         * userid : 967dd782aa3e4fc4bbbc9bf8f8caf737
         * username : liuchao
         * createdatetime : 1484271078388
         */

        private String id;
        private String reportid;
        private String content;
        private String userid;
        private String username;
        private String userimgurl;
        private long createdatetime;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getReportid() {
            return reportid;
        }

        public void setReportid(String reportid) {
            this.reportid = reportid;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public String getUserimgurl() {
            return userimgurl;
        }

        public void setUserimgurl(String userimgurl) {
            this.userimgurl = userimgurl;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public long getCreatedatetime() {
            return createdatetime;
        }

        public void setCreatedatetime(long createdatetime) {
            this.createdatetime = createdatetime;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.reportid);
            dest.writeString(this.content);
            dest.writeString(this.userid);
            dest.writeString(this.username);
            dest.writeString(this.userimgurl);
            dest.writeLong(this.createdatetime);
        }

        public ReportFeedbackBean() {
        }

        protected ReportFeedbackBean(Parcel in) {
            this.id = in.readString();
            this.reportid = in.readString();
            this.content = in.readString();
            this.userid = in.readString();
            this.username = in.readString();
            this.userimgurl = in.readString();
            this.createdatetime = in.readLong();
        }

        public static final Parcelable.Creator<ReportFeedbackBean> CREATOR = new Parcelable.Creator<ReportFeedbackBean>() {
            @Override
            public ReportFeedbackBean createFromParcel(Parcel source) {
                return new ReportFeedbackBean(source);
            }

            @Override
            public ReportFeedbackBean[] newArray(int size) {
                return new ReportFeedbackBean[size];
            }
        };
    }

}